import { request } from "./utils";

export function getHotelDeptList() {
  return request({
    url: "/hotel/dept/list",
    method: "get"
  });
}
export function addHotelDept(data) {
  return request({
    url: "/hotel/dept/add",
    method: "post",
    data: data
  });
}

export function updateHotelDept(data) {
  return request({
    url: "/hotel/dept/edit",
    method: "put",
    data: data
  });
}
export function deleteHotelDept(id) {
  return request({
    url: "/hotel/dept/delete/" + id,
    method: "delete"
  });
}
